//
//  mapView.m
//  lyxluyou
//
//  Created by mmyy on 15/10/18.
//  Copyright (c) 2015年 mmyy. All rights reserved.
//

#import "mapView.h"

#import <MapKit/MapKit.h>
@interface mapView ()

@end

@implementation mapView
{
    MKMapView *_mapView;

}
- (void)viewDidLoad {
    [super viewDidLoad];
    _mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
    MKCoordinateRegion region = MKCoordinateRegionMake(self.coor, MKCoordinateSpanMake(0.000005, 0.000005));
    [_mapView setRegion:region animated:YES];
    MKPointAnnotation *annotation = [[MKPointAnnotation alloc] init];
    annotation.title = self.mytitle;
    annotation.subtitle = self.subTitle;
    [annotation setCoordinate:self.coor];
    [_mapView addAnnotation:annotation];
    [self.view addSubview:_mapView];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
